//C:9.1:coordin.h -- structure templates and function prototypes
// structure templates
#ifndef COORDIN_H_
#define COORDIN_H_
typedef struct polar
{
    double distance;    // distance from origin
    double angle;    // direction from origin
}polar;

typedef struct rect
{
    double x;    // horizontal distance from origin
    double y;    // vertical distance from origin
}rect;

// prototypes
polar rect_to_polar(rect xypos);
void show_polar(polar dapos);
#endif